from struct import Struct
from collections import namedtuple

my_struct = Struct('i?f')
data = my_struct.pack(102,False, 1508)
print(data)
unpack_data = my_struct.unpack(data)
print(unpack_data)

Person = namedtuple('Person','name desc age upgraded score')
person = Person(
    bytes('Bobby', encoding='UTF-8'),
    bytes('I am Bobby', encoding='UTF-8'),
    18,
    True,
    99.5
)

print(person)